package com.example.test.service.impl;

import com.example.test.mapper.LodopMapper;
import com.example.test.mapper.TempItemsMapper;
import com.example.test.service.LodopService;
import com.example.test.vo.LodopVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LodopServiceImpl implements LodopService {

    @Autowired
    private LodopMapper lodopMapper;

    @Override
    public void add(String detail) {
        System.out.println(detail);
        lodopMapper.add(detail);
    }

    @Override
    public List<LodopVO> getAll() {
        return lodopMapper.getAll();
    }

    @Override
    public void del(Long id) {
        lodopMapper.del(id);
    }

  @Override
  public void edit(LodopVO lodopVO) {
    lodopMapper.edit(lodopVO);
  }
}
